/*************************************************
filename	: win32_system_timer.h
author		: Stefan lulham
desc		: Win32 System timer
*************************************************/
#ifndef D_WIN32_SYSTEM_TIMER_H
#define D_WIN32_SYSTEM_TIMER_H

#pragma comment(lib, "winmm.lib")

#include <Windows.h>
#include <time.h>

#undef GetCurrentTime
#undef GetTickCount

namespace DelGE
{
	namespace Modules
	{
		namespace System
		{
			class Win32SystemTimer
			{
			protected:
				float fStart, fEnd, fDelta;

			public:
				Win32SystemTimer();
				~Win32SystemTimer();

				void Start();
				void Stop();

				float GetDeltaTime();
				float GetStartTime();
				float GetEndTime();
				float GetCurrentTime();

				void Restart();
			};
		}
	}
}

#endif